package com.ytjj.bigdata.controller;

import com.ytjj.bigdata.model.dto.AdsOrderCountDto;
import com.ytjj.bigdata.service.AdsOrderCountService;
import com.ytjj.common.api.CommonResult;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/adsOrder")
@Slf4j
public class AdsOrderCountController {
    @Autowired
    private AdsOrderCountService adsOrderCountService;

    @PostMapping("/adsOrderList")
    public CommonResult adsOrderList(@RequestBody AdsOrderCountDto adsOrderCountDto) {
        log.info("=======adsOrderList====={}", adsOrderCountDto);
        return CommonResult.success(adsOrderCountService.selectAdsOrder(adsOrderCountDto));
    }
}
